package com.channel.temperature.collect.app.ext

import androidx.lifecycle.MutableLiveData
import com.kunminx.architecture.domain.message.MutableResult
import com.channel.temperature.collect.data.response.BLEConnectDevice

/**
 * 作者　: hegaojian
 * 时间　: 2022/5/23
 * 描述　: 全局发送消息 通过LiveData实现
 */
object LiveDataEvent {

    //示例：登录成功发送通知
    val loginEvent = MutableResult<Boolean>()

    val testString = MutableResult<String>()

    val connectBleDevice = MutableResult<BLEConnectDevice>()

    val SystemSettingConnectSPPDevice = MutableResult<BLEConnectDevice>()

    val connectSPPDevice = MutableResult<BLEConnectDevice>()

    val OfflineConnectSPPDevice = MutableResult<BLEConnectDevice>()

    val updateTaskRecycler = MutableResult<Boolean>()

    var showTitle = MutableLiveData<Boolean>()

    var currentMode = MutableLiveData<Int>()
    var checkedWorkMode = MutableLiveData<Int>()//1:工作模式（时间参数）  2：压力参数
    var notifyReReadSystemInfo = MutableLiveData<Boolean>()
}